__all__ = ['my_sum1']


def my_sum1(n):
    """
    计算1-n的数字和
    :param n:
    :return:
    """
    sum = 0
    for i in range(n):
        sum += i
    return sum


def my_sum2(n):
    """
    计算1-n的数字和
    :param n:
    :return:
    """
    sum = 0
    for i in range(n):
        sum += i
    return sum


if __name__ == '__main__':
    print(my_sum1(10))
